//import angualr core
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

//
import { UserFoodListComponent } from './user-food-list/user-food-list.component';
import { OrderFoodComponent } from 'app/order-food/order-food.component';

const routes: Routes = [
    {
        path: '',
        component: OrderFoodComponent,
        children:[
            {
                path:'',
                component: UserFoodListComponent
            },
            {
                path:'user-food-list',
                component: UserFoodListComponent
            }
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})

export class OrderFoodRoutingModule {}